package com.company.command;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 */
public class Client {
	
	public static void main(String[] args) {
		//定义一个命令,压缩一个文件
		AbstractCmd cmd = new ZipCompressCmd();
		/*
		 * 想换一个？执行解压命令
		 * AbstractCmd cmd = new ZipUncompressCmd();
		 */
		//定义调用者
		Invoker invoker = new Invoker(cmd);
		//我命令你对这个文件进行压缩
		System.out.println("========执行压缩命令========");
		invoker.execute("c:\\windows", "d:\\windows.zip");
	}
}
